package com.key.win.business.chat.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.key.win.base.model.MybatisID;
import com.key.win.business.chat.eums.ImMessageContentTypeEnum;
import com.key.win.business.chat.eums.ImMessageTargetEnum;
import com.key.win.business.chat.eums.ImMessageTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel("消息实体")
@Data
@TableName("im_message")
@EqualsAndHashCode(callSuper = true)
public class ImMessage extends MybatisID {
    @ApiModelProperty("发送内容")
    private String content;
    @ApiModelProperty("发送人")
    private String fromUserId;
    @ApiModelProperty("目标[好友、群、系统]")
    private ImMessageTargetEnum target;
    @ApiModelProperty("消息类型:[好友消息、管理员消息]、[系统消息、好友申请消息、...]、[群消息、@消息、管理员消息]")
    private ImMessageTypeEnum type;
    @ApiModelProperty("targetId")
    private String targetId;
    @ApiModelProperty("消息类型[文本消息/图片消息/视频消息/音频消息/压缩文件消息/其它类型消息]")
    private ImMessageContentTypeEnum contentType = ImMessageContentTypeEnum.TEXT;

}
